package cn.yuanqiao.archive.management.utils.entity;

/**
 * sf
 *  日志枚举类型 
 *  2021-07-20
 *   */
public enum LOG_TYPE {
	
	
	Add("增加","10"),
	SHOW("查看","11"),
	Delete("删除","20"),
	Cddelete("彻底删除","21"),
	Huifu("恢复","22"),
	Update("修改","23"),
	Upload("上传","40"),
	Archive("归档","50"),
	Shenpi("审批","51"),
	Xiaohui("销毁","52"),
	Login("登陆","60"),
	Loginout("登出","61"),
	Print("打印","80"),
	Import("导入","90"),
	Export("导出","91"),
	Download("下载","92"),
	Guajie("挂接","93"),
	Shangjia("上架","94"),
	Xiajia("下架","95"),
	Fabu("发布","96"),
	Cxfabu("撤销发布","97"),
	QUXIAO("取消","98"),
	BANJIE("办结","101"),
	CREATE("创建","102"),
	TONGJI("统计","103"),
	FUGAI("覆盖","104"),
	FASONG("发送","105"),
	TB("调拨","100"),
	JRWL("接入网络","200"),
	GH("归还","300"),
	JYCG("借阅成功","301"),
	QXJY("取消借阅","302"),
	JYTH("借阅退回","303"),
	WHWX("维护维修","400"),
	BF("报废","500"),
	XGJRWL("修改了接入网络","600"),
	SCJRWL("删除了接入网络","700"),
	
	RECEIVEINFOPACKAGE("接收归档信息包","701"),
	/**
	 * 退回归档系统
	 */
	SENDBACKGD("退回归档系统","702"),

	//10,20,21,22,30,40,50,51,52,60,61,80,91,92,93;
	//   20：删除   21：彻底删除   22：恢复      30：修改   40：上传  50：归档     51：审批    52：销毁     60:登录   61：登出    80：打印       91：导出         92：下载      93：挂接    

	/////////////////////业务行为枚举////////////////////////
	
	CAONI("草拟","1001"),
	SHENHE("审核","1002"),
	QIANFA("签发","1003"),
	HUIQIAN("会签","1004"),
	FUHE("复核","1005"),
	SHANYIN("缮印","1006"),
	YONGYIN("用印","1007"),
	DENGJI("登记","1008"),
	FENFA("分发","1009"),
	QIANSHOU("签收","1010"),
	NIBAN("拟办","1011"),
	PIBAN("批办","1012"),
	CHENGBAN("承办","1013"),
	CUIBAN("催办","1014"),
	JIANZHIJIANDING("价值鉴定","1015"),
	ZHENGLI("整理","1016"),
	LIJUAN("立卷","1017"),
	GUIDANG("归档","1018"),
	JIANCHA("检查","1019"),
	YIJIAO("移交","1020"),
	JIESHOU("接收","1021"),
	ANJUANTIAOZHENG("案卷调整","1022"),
	GUIDANGWENJIANTIAOZHENG("归档文件调整","1023"),
	SIXING("真实性、完整性、有效性鉴定","1024"),
	GESHIJIANCE("格式检测","1025"),
	FENGZHUANG("封装","1026"),
	HUAKONG("划控","1027"),
	HUAKONGSHENPI("划控审批","1028"),
	SHENGJIANGJIEMI("升降解密","1029"),
	SHENGJIANGJIEMISHENPI("升降解密审批","1030"),
	CHONGXINBIAOSHI("重新标识","1031"),
	KAOBEI("拷贝","1032"),
	SUOWEI("缩微","1033"),
	SAOMIAO("扫描","1034"),
	ZAITIQIANYI("载体迁移","1035"),
	PINGTAIQIANYI("平台迁移","1036"),
	GESHIZHUANHUAN("格式转换","1037"),
	GONBU("公布","1038"),
	GONGBUSHENPI("公布审批","1039"),
	XIAOHUI("销毁","1040"),
	XIAOHUISHENPI("销毁审批","1041"),
	JIANXIAO("监销","1042"),
	BEIFEN("备份","1043"),
	CUNCU("存储","1044"),
	LIYONG("利用","1045"),
	LIYONGSHENPI("利用审批","1046"),
	QITA("[其他]","1047");
	
	private String index;
	private String name;
	
	// 构造方法  
    private LOG_TYPE(String name, String index) {  
        this.name = name;  
        this.index = index;  
    }

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}  
	
	public static String getValue(String key) {
		LOG_TYPE[] LOG_TYPES = values();
		for(LOG_TYPE LOGTYPE:LOG_TYPES) {
			if(LOGTYPE.name.equals(key)) {
				return LOGTYPE.index;
			}
		}
		return "";
	}

	public static String getKey(String name) {
		LOG_TYPE[] LOG_TYPES = values();
		for(LOG_TYPE LOGTYPE:LOG_TYPES) {
			if(LOGTYPE.index.equals(name)) {
				return LOGTYPE.name;
			}
		}
		return "";
	}	
}

